package org.third.security.classloader;

import java.io.IOException;
import java.io.InputStream;
import java.net.URL;
import java.net.URLClassLoader;
import java.security.KeyFactory;
import java.security.PublicKey;
import java.security.cert.X509Certificate;
import java.security.spec.X509EncodedKeySpec;
import java.util.ArrayList;
import java.util.Base64;
import java.util.jar.JarEntry;
import java.util.jar.JarFile;

import sun.security.pkcs.PKCS7;
import sun.security.pkcs.SignerInfo;

public class ClassLoaderTest {


    @SuppressWarnings({ "resource", "unused" })
    public static void main(String[] args) {
    }
    static class MyClassLoader extends URLClassLoader {

        public MyClassLoader(URL[] urls) {
            super(urls);
        }

        public MyClassLoader(URL[] urls, ClassLoader parent) {
            super(urls, parent);
        }

        public void addJar(URL url) {
            this.addURL(url);
        }

        @Override
        public Class<?> loadClass(String name) throws ClassNotFoundException {
            // TODO Auto-generated method stub
            return super.loadClass(name);
        }

        @Override
        protected Class<?> loadClass(String name, boolean resolve) throws ClassNotFoundException {
            // TODO Auto-generated method stub
            return super.loadClass(name, resolve);
        }

        @Override
        protected Class<?> findClass(String name) throws ClassNotFoundException {
            // TODO Auto-generated method stub
            return super.findClass(name);
        }

    }
}
